| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* global document */ |
||
| 10 | document.addEventListener('DOMContentLoaded', () => { |
||
| 11 | const sectionConfig = ConfigHelpers.getSection('SilverStripe\\CampaignAdmin\\CampaignAdmin'); |
||
| 12 | reactRouteRegister.add({ |
||
| 13 | path: sectionConfig.url, |
||
| 14 | component: withRouter(CampaignAdmin), |
||
| 15 | childRoutes: [ |
||
| 16 | { path: ':type/:id/:view', component: CampaignAdmin }, |
||
| 17 | { path: 'set/:id/:view', component: CampaignAdmin }, |
||
| 18 | ], |
||
| 19 | }); |
||
| 20 | |||
| 21 | Injector.reducer.register('campaign', CampaignReducer); |
||
| 22 | |||
| 23 | // Apply any injector transformations |
||
| 24 | applyConditionals(); |
||
| 25 | }); |
||
| 26 |